package com.sunwayworld.basemodule.coredata.test.bean;

import com.sunwayworld.framework.constant.Constant;
import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.NotNull;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Insertable;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 方法分析项
 * 
 * @author hul@sunwayworld.com
 * @date 2023-01-06
 */
@Table("T_LIMS_TEST_METHOD_ANALYTE")
public class LimsTestMethodAnalyteBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long testMethodId;// 方法ID
    private String analyte;// 分析项
    private String analyteCode;// 分析项编码
    private String referenceRange;// 参考范围
    private String formula;// 计算公式
    private String unit;// 计量单位
    private String picture;// 修约规则
    private String defaultResult;// 默认结果
    @NotNull(defaultValue = "C")
    private String analType;// 结果类型
    private Long sorter;// 排序码
    @NotNull(defaultValue = Constant.YES)
    private String showInRep;// 报告中显示
    @NotNull(defaultValue = Constant.YES)
    private String taskFlag;// 任务单显示
    @NotNull(defaultValue = Constant.YES)
    private String taskManageFlag;// 任务调度显示
    @NotNull(defaultValue = Constant.YES)
    private String writeFlag;// 是否必填
    @NotNull(defaultValue = Constant.YES)
    private String editFlag;// 是否可编辑
    @NotNull(defaultValue = Constant.NO)
    private String hideFlag;// 是否隐藏
    @NotNull(defaultValue = Constant.YES)
    private String inherit;// 是否继承
    private String possibleFinal;// 可能的结果
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTestMethodId() {
        return testMethodId;
    }

    public void setTestMethodId(Long testMethodId) {
        this.testMethodId = testMethodId;
    }

    public String getAnalyte() {
        return analyte;
    }

    public void setAnalyte(String analyte) {
        this.analyte = analyte;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getDefaultResult() {
        return defaultResult;
    }

    public void setDefaultResult(String defaultResult) {
        this.defaultResult = defaultResult;
    }

    public String getAnalType() {
        return analType;
    }

    public void setAnalType(String analType) {
        this.analType = analType;
    }

    public Long getSorter() {
        return sorter;
    }

    public void setSorter(Long sorter) {
        this.sorter = sorter;
    }

    public String getShowInRep() {
        return showInRep;
    }

    public void setShowInRep(String showInRep) {
        this.showInRep = showInRep;
    }

    public String getTaskFlag() {
        return taskFlag;
    }

    public void setTaskFlag(String taskFlag) {
        this.taskFlag = taskFlag;
    }

    public String getTaskManageFlag() {
        return taskManageFlag;
    }

    public void setTaskManageFlag(String taskManageFlag) {
        this.taskManageFlag = taskManageFlag;
    }

    public String getWriteFlag() {
        return writeFlag;
    }

    public void setWriteFlag(String writeFlag) {
        this.writeFlag = writeFlag;
    }

    public String getEditFlag() {
        return editFlag;
    }

    public void setEditFlag(String editFlag) {
        this.editFlag = editFlag;
    }

    public String getHideFlag() {
        return hideFlag;
    }

    public void setHideFlag(String hideFlag) {
        this.hideFlag = hideFlag;
    }

    public String getPossibleFinal() {
        return possibleFinal;
    }

    public void setPossibleFinal(String possibleFinal) {
        this.possibleFinal = possibleFinal;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

    public String getInherit() {
        return inherit;
    }

    public void setInherit(String inherit) {
        this.inherit = inherit;
    }
    public String getAnalyteCode() {
        return analyteCode;
    }

    public void setAnalyteCode(String analyteCode) {
        this.analyteCode = analyteCode;
    }

    public String getReferenceRange() {
        return referenceRange;
    }

    public void setReferenceRange(String referenceRange) {
        this.referenceRange = referenceRange;
    }
}
